<html>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=windows-1251' />
<meta http-equiv='refresh' content='60; url=http://javascript.ru/person/Paguo-86PK' />
<title>Tetris</title>
<style type='text/css'>
body
{
	background-color: buttonface;
	background-image: url();
	background-repeat: no-repeat;
	color: black;
	margin-top: 0px;
	margin-left: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	overflow: auto;
}
button
{
	color			:blue;
	width			:32px;
	height			:24px;
}
input
{
	text-align		:right;
	width			:196px;
}
</style>
<hta:application
	applicationName	='Alikberov Ruslan'
	border			='yes'
	contextMenu		='yes'
	icon			='Alikberov.ico'
	innerBorder		='no'
	maximizeButton	='yes'
	navigable		='yes'
	scroll			='yes'
	selection		='yes'
	singleInstance	='yes'
>
</hta:application>
<script for='window' event='onloads' language='javascript'>
	setTimeout("window.resizeTo(160, 320)", 0);
</script>
<script for='document' event='onkeydown' language='javascript'>
	switch(event.keyCode) {
	default:	return;
	}
</script>
<script language='javascript'>
var	soWshShell = new ActiveXObject("WScript.Shell");
//	WScript.Quit(Main());
function GetHostStatus(wszHost) {
	var
		oPing = soWshShell.exec("ping -n 1 " + wszHost),
		wszOut = "";
	do {
//		WScript.sleep(100);
		if(!oPing.stdout.atEndOfStream)
			wszOut += oPing.stdout.ReadAll();
	} while(oPing.status != 1);
return wszOut;
	var
		oMatches = /[^ ]+:.+TTL=[^\r\n]+/g.exec(wszOut);
alert(oMatches);
	if(oMatches > 0)
		return oMatches[0].value;
	return "...";
}
</script>
<body onload='alert(GetHostStatus("http://gamedev.ru/"))'>
<pre></pre>
</body>
</html>